package src;

public class MyClass2 {
	
	public void toDo(MyClass myClass) {
		synchronized (myClass) {
			myClass.method1();
			
		}
		myClass.method2();
	}

	

}
